import Taro from "@tarojs/taro-h5";
import Nerv from "nervjs";
import { View } from '@tarojs/components';
import './HeroType.scss';

class HeroType extends Taro.Component {
  render() {
    const props = this.props;

    const heroTypeData = [0, 2, 1, 0, 4, 5, 3];
    return <View className="HeroType" style={{
      backgroundPositionY: heroTypeData[props.type] * 20 + '%'
    }}></View>;
  }

}

export default HeroType;